<template>
  <div class="layout-sub-page">
    <div class="sub-content">
      <keep-alive :include="cachedPages">
        <router-view />
      </keep-alive>
    </div>
  </div>
</template>

<script>
// 暂时去掉面包屑逻辑
import { mapGetters } from 'vuex'
export default {
  name: 'LayoutSub',
  computed: {
    ...mapGetters({ cachedPages: 'cachedPages' }),
  },
}
</script>

<style lang="scss" scoped>
.layout-sub-page {
  height: 100%;
  width: 100%;
  overflow-x: auto;
  .sub-content {
    background: #fff;
    min-width: 920px;
    position: relative;
    height: 100%;
  }
}
</style>
